home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form Speedcal1
- Caption = "Speed Calculator"
- ClientHeight = 4755
- ClientLeft = 990
- ClientTop = 1440
- ClientWidth = 10875
- Height = 5160
- Left = 930
- LinkMode = 1 'Source
- LinkTopic = "Form1"
- Picture = SPEED1.FRX:0000
- ScaleHeight = 4755
- ScaleWidth = 10875
- Top = 1095
- Width = 10995
- Begin CommandButton Quit
- Caption = "Quit"
- Height = 495
- Left = 7440
- TabIndex = 0
- Top = 4080
- Width = 1215
- End
- Begin Frame Frame1
- Caption = "Top Speed"
- Height = 1095
- Left = 360
- TabIndex = 9
- Top = 3240
- Width = 3135
- Begin TextBox Speed
- Height = 495
- Left = 480
- TabIndex = 10
- Text = " "
- Top = 480
- Width = 1095
- End
- Begin Label Label4
- Caption = "MPH"
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 18
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 495
- Left = 1680
- TabIndex = 11
- Top = 480
- Width = 975
- End
- End
- Begin CommandButton Command2
- Caption = "Calculate"
- Height = 495
- Left = 1920
- TabIndex = 12
- Top = 2400
- Width = 1455
- End
- Begin TextBox FinalDrive
- Height = 375
- Left = 1920
- TabIndex = 5
- Text = " "
- Top = 1560
- Width = 855
- End
- Begin TextBox Tire
- Height = 375
- Left = 1920
- TabIndex = 4
- Text = " "
- Top = 1080
- Width = 855
- End
- Begin TextBox RPM
- Height = 375
- Left = 1920
- TabIndex = 3
- Text = " "
- Top = 480
- Width = 855
- End
- Begin ListBox GroupList
- Height = 1590
- Left = 600
- TabIndex = 1
- Top = 480
- Width = 855
- End
- Begin Label Label3
- Caption = "Final Drive"
- Height = 255
- Left = 2880
- TabIndex = 8
- Top = 1560
- Width = 975
- End
- Begin Label TireSize
- Caption = "Tire Size"
- Height = 255
- Left = 2760
- TabIndex = 7
- Top = 1080
- Width = 1095
- End
- Begin Label Label2
- Caption = "RPM"
- Height = 255
- Left = 2880
- TabIndex = 6
- Top = 600
- Width = 975
- End
- Begin Label Label1
- Caption = "Axle Choice"
- Height = 255
- Left = 360
- TabIndex = 2
- Top = 120
- Width = 1335
- End
- Sub Command1_Click ()
- GroupList.Show
- End Sub
- Sub Command2_Click ()
- Gear = Val(GroupList.text)
- RPM1 = Val(RPM.text)
- Drive = Val(Finaldrive.text)
- Tiresz = Val(tire.text)
- Speed1 = Tiresz * RPM1 * (1 / Gear)
- Speed2 = 336 * Drive
- speedres = Speed1 / Speed2
- Speed.text = Format$(speedres, "000")
- End Sub
- Sub Form_Load ()
- GroupList.AddItem "2.73"
- GroupList.AddItem "3.00"
- GroupList.AddItem "3.25"
- GroupList.AddItem "3.55"
- GroupList.AddItem "3.73"
- GroupList.AddItem "3.89"
- GroupList.AddItem "4.11"
- GroupList.AddItem "4.56"
- End Sub
- Sub Quit_Click ()
- End Sub
- Sub Start_Click ()
- GroupList.Show
- End Sub
-